package com.woniu.service.impl;

import com.woniu.entity.State;
import com.woniu.mapper.StateMapper;
import com.woniu.service.StateService;
import com.woniu.utils.MyBatisUtil;
import org.apache.ibatis.session.SqlSession;

public class StateServiceImpl implements StateService {

    SqlSession sqlSession = MyBatisUtil.getSqlSession();
    StateMapper mapper = sqlSession.getMapper(StateMapper.class);
    @Override
    public State selectStateById(Integer sid) {
        State state = mapper.selectStateById(sid);
        return state;
    }
}
